const Router = require('koa-router')
const router = new Router({
  prefix: '',
})

const admin = require('./admin/admin')
const channel = require('./channel')
const userChannel = require('./userChannel')
const video = require('./video')
const videoPath = require('./videoPath')

router.use('/api/admin', admin.routes(), admin.allowedMethods())
router.use('/api/channel', channel.routes(), channel.allowedMethods())
router.use('/api/userChannel', userChannel.routes(), userChannel.allowedMethods())
router.use('/api/video', video.routes(), video.allowedMethods())
router.use('/video', videoPath.routes(), videoPath.allowedMethods())

module.exports = router
